<template>
  <MainLayout>
    <section class="forum-header">
      <div class="container">
        <div class="forum-header-title">制作你的3D配置器</div>
        <div class="forum-header-content">
          无代码，在AnyRender中使用现成的元素设置用户界面。设计菜单、功能和触发器。几分钟内就准备好了。
        </div>
        <div class="find-btn">
          <div class="find-btn-txt" @click="jump('/business/contact')">让我们联系一下</div>
        </div>
      </div>
    </section>
    <section class="img-section">
      <div class="container">
        <img class="img-section-img" src="/images/seek/3DConfig/banner/1.jpg" alt="" />
      </div>
    </section>

    <section class="threeD-section">
      <div class="container">
        <div class="threeD-title">给人留下深刻印象并产生影响</div>
        <div class="threeD-description">
          在网上显示所有产品版本，从想法到最终概念。吸引观众的注意力，并在不遮主展示的情况下揭示层层信息。添加定制品牌。通过发送一个可以在聊天中打开或嵌入在线任何地方的链接来共享。
        </div>
      </div>
    </section>
    <section class="img-section">
      <div class="container">
        <img class="img-section-img" src="/images/seek/3DConfig/banner/2.jpg" alt="" />
      </div>
    </section>
    <section class="threeD-section">
      <div class="container">
        <div class="threeD-title">在决策中包括交互式配置器</div>
        <div class="threeD-description">
          将多个设计合并到一个3D演示中，以便进行比较和详细分析。与您的团队分享材料选项，以获得反馈或投入。使用AR在您的环境中即时测试，而无需使用物理样本。
        </div>
      </div>
    </section>
    <section class="threeD-section">
      <div class="container">
        <div class="threeD-title">看看可以配置什么</div>
        <div class="threeD-description">发现您可用的无代码配置器元素。</div>
      </div>
    </section>
    <section class="threeD-content">
      <div class="container">
        <div class="threeD-list">
          <div class="threeD-item" v-for="(item, index) in podsList" :key="item.title">
            <div class="threeD-item-inner">
              <img class="threeD-item-img" :src="`/images/seek/3DConfig/pods/${index + 1}.jpg`" alt="" />
              <div class="threeD-item-title">{{ item.title }}</div>
              <div class="threeD-item-content">
                <ul>
                  <li v-for="(tips, index) in item.tipsList" :key="index">{{ tips }}</li>
                </ul>
              </div>
            </div>
          </div>
        </div>
      </div>
    </section>
    <div class="find-btn">
      <div class="find-btn-txt transparent" @click="jump('/seek/interact')">了解更多关于互动和动画的信息</div>
    </div>
    <section class="threeD-section">
      <div class="container">
        <div class="threeD-title">使用API扩展自定义选项</div>
      </div>
    </section>
    <section class="secure-content">
      <div class="container">
        <div class="secure-level">
          <div class="secure-level-content">
            <div class="secure-level-title">从人群中脱颖而出</div>
            <div class="secure-level-tips">使用商业工作区，您可以访问为开发人员设计的API，以自定义和扩展功能：</div>
            <div class="secure-level-desc">
              <li>获取配置器内定价计算器，以连接到电子商务平台的结账。</li>
            </div>
            <div class="secure-level-desc">
              <li>向定制器添加外部数据源。</li>
            </div>
            <div class="secure-level-desc">
              <li>将配置器与您的网站无缝连接，以对滚动动画、鼠标移动、点击做出反应。</li>
            </div>
            <div class="secure-level-desc">还有很多......</div>
            <div class="secure-level-btn">
              <div class="secure-level-btn-inner" @click="jump('/business/contact')">告诉我们你需要什么</div>
            </div>
          </div>
          <div class="secure-iso">
            <img src="/images/seek/3DConfig/bike.jpg" alt="" />
          </div>
        </div>
      </div>
    </section>

    <section class="threeD-section">
      <div class="container">
        <div class="threeD-title">探索3D配置器示例</div>
        <div class="find-btn">
          <div class="find-btn-txt" @click="jump('/resources/3d')">获得设计见解</div>
        </div>
      </div>
    </section>
    <section class="threeD-content">
      <div class="container">
        <div class="threeD-list">
          <div class="threeD-item" v-for="(item, index) in demoList" :key="item.title">
            <div class="threeD-item-inner">
              <img class="threeD-item-img" :src="`/images/seek/3DConfig/demo/${index + 1}.jpg`" alt="" />
              <div class="threeD-item-tips">{{ item.tips }}</div>
              <div class="threeD-item-title">{{ item.title }}</div>
              <div class="threeD-item-content">{{ item.desc }}</div>
              <div class="threeD-item-btn" @click="jump('/resources/3d')">了解更多</div>
            </div>
          </div>
        </div>
      </div>
    </section>

    <section class="threeD-section">
      <div class="container">
        <div class="threeD-title">从AnyRender成功案例中获得灵感</div>
      </div>
    </section>
    <section class="secure-content">
      <div class="container">
        <div class="secure-level">
          <div class="secure-level-content">
            <div class="secure-level-tips-small">案例研究</div>
            <div class="secure-level-title">使用3D配置器和AR来展示他们屡获殊荣的产品</div>
            <div class="secure-level-tips">使用商业工作区，您可以访问为开发人员设计的API，以自定义和扩展功能：</div>
            <div class="secure-level-btn">
              <div class="secure-level-btn-inner more" @click="jump('/resources/successCases')">了解更多</div>
            </div>
          </div>
          <div class="secure-iso">
            <img src="/images/seek/3DConfig/phone.jpg" alt="" />
          </div>
        </div>
      </div>
    </section>
    <section class="secure-content">
      <div class="container">
        <div class="secure-level">
          <div class="secure-iso">
            <img src="/images/seek/3DConfig/moto.jpg" alt="" />
          </div>
          <div class="secure-level-content">
            <div class="secure-level-tips-small">案例研究</div>
            <div class="secure-level-title">KTM使用互动功能发起了营销活动</div>
            <div class="secure-level-tips">
              KTM选择AnyRender创建交互式摩托车配置器，以启动完整的营销活动，并促进社区对关键市场的参与。
            </div>
            <div class="secure-level-btn">
              <div class="secure-level-btn-inner more" @click="jump('/resources/successCases')">了解更多</div>
            </div>
          </div>
        </div>
      </div>
    </section>

    <section class="img-section">
      <div class="container">
        <img
          class="img-section-img cursor"
          @click="jump('/business/businessVersion')"
          src="/images/seek/3DConfig/banner/3.jpg"
          alt=""
        />
      </div>
    </section>
  </MainLayout>
</template>

<script setup>
  import { useRouter } from "vue-router";
  const router = useRouter();
  let podsList = [
    {
      title: "物料交换器",
      tipsList: ["任何部件分配多种材料", "设计您的用户界面和触发器"],
    },
    {
      title: "变体",
      tipsList: ["对象的整个部分可切换", "显示和隐藏物体、灯光等。"],
    },
    {
      title: "热点",
      tipsList: ["放置静态或动画目标", "触发交互和动画"],
    },

    {
      title: "外部链接",
      tipsList: ["重定向到外部链接", "允许站点读取配置"],
    },
    {
      title: "相机",
      tipsList: ["用户看到一个预定义的角度", "切换角度以显示预定义的细节"],
    },
    {
      title: "聚焦",
      tipsList: ["让重要部分脱颖而出", "点击或鼠标悬停时触发"],
    },
    {
      title: "增强现实",
      tipsList: ["在AR中显示选定的配置", "不需要额外的应用程序"],
    },
    {
      title: "模块化",
      tipsList: ["展示模块化设计", "点击时附加或分离部件"],
    },
    {
      title: "图像和文本",
      tipsList: ["导入您自己的用户界面元素", "创建视觉上有趣的注释"],
    },
    {
      title: "下载图像",
      tipsList: ["用户可以下载预定义的渲染", "用户可以下载他们的变体"],
    },
    {
      title: "上传图片",
      tipsList: ["户可以在对象上上传图形", "创建可定制的3D模型"],
    },
    {
      title: "声音",
      tipsList: ["将声音添加到交互或用户界面元素中", "创建自定义语音指南"],
    },
  ];
  let demoList = [
    {
      tips: "工业",
      title: "电子产品",
      desc: "3D配置器可以提供更多信息并展示模块化部件。",
      btn: "查看演示",
      img: "",
    },
    {
      tips: "工业",
      title: "包装",
      desc: '使用”上传图像"功能来创建额外的自定义。',
      btn: "查看演示",
      img: "",
    },
    {
      tips: "工业",
      title: "制造业",
      desc: "使用热点、注释和浮动用户界面来充分解释任何CAD模型。",
      btn: "查看演示",
      img: "",
    },
    {
      tips: "工业",
      title: "时尚",
      desc: "测试材料，包括缝纫细节，在AR中查看变化和预览。",
      btn: "查看演示",
      img: "",
    },
    {
      tips: "工业",
      title: "医疗",
      desc: "使用颜色变化和自定义视图创建一个引人注目的销售演示。",
      btn: "查看演示",
      img: "",
    },
    {
      tips: "工业",
      title: "建筑",
      desc: "以3D演示的形式设置分步说明。",
      btn: "查看演示",
      img: "",
    },
    {
      tips: "工业",
      title: "交通",
      desc: "创建一个车辆细节和功能的互动展示。",
      btn: "查看演示",
      img: "",
    },
    {
      tips: "工业",
      title: "航空",
      desc: "在注释中提供完整的服务，并附上附加信息。",
      btn: "查看演示",
      img: "",
    },
    {
      tips: "工业",
      title: "家具",
      desc: "专注于逼真的材料，并展示变化、尺寸和模块化。",
      btn: "查看演示",
      img: "",
    },
  ];
  function jump(path) {
    router.push(path);
  }
</script>

<style lang="scss" scoped>
  @import "@/styles/variables.scss";

  .forum-header {
    padding: 48px 0;

    .container {
      .forum-header-title {
        font-size: 64px;
        font-weight: 500;
        color: #000;
        line-height: 1.6;
        text-align: center;
        letter-spacing: 3px;
      }
      .forum-header-content {
        margin: 20px auto;
        width: 50%;
        line-height: 1.6;
        text-align: center;
        font-size: 16px;
        color: #585858;
      }
    }
    // 响应式 电脑
    @media (max-width: $breakpoint-desktop) {
      .container {
        .forum-header-title {
          font-size: 50px;
          letter-spacing: 2px;
        }
      }
    }
    // 响应式 平板
    @media (max-width: $breakpoint-tablet) {
      padding: 32px 0;
      .container {
        .forum-header-title {
          font-size: 38px;
          letter-spacing: 1px;
        }
        .forum-header-content {
          margin-top: 20px;
          font-size: 14px;
          width: 80%;
        }
      }
    }
    // 响应式 手机
    @media (max-width: $breakpoint-mobile) {
      padding: 24px 0;
      .container {
        .forum-header-title {
          font-size: 32px;
        }
      }
    }
  }

  .find-btn {
    margin: 40px auto;
    display: flex;
    justify-content: center;
    align-items: center;

    .find-btn-txt {
      display: inline-block;
      text-align: center;
      padding: 8px 20px;
      min-width: 60px;
      font-size: 16px;
      border-radius: 6px;
      color: #fff;
      background-color: #703ffa;
      border: 1px solid #703ffa;
      cursor: pointer;
      transition: all 0.2s ease-in-out;
      &:hover {
        background-color: transparent;
        color: #703ffa;
      }
      &.transparent {
        color: #703ffa;
        background-color: transparent;

        &:hover {
          background-color: #703ffa;
          color: #fff;
        }
      }
    }

    @media (max-width: $breakpoint-mobile) {
      margin: 20px auto;
      .find-btn-txt {
        margin: 20px auto;
        padding: 4px 20px;
        min-width: 100px;
        font-size: 14px;
      }
    }
  }

  .img-section {
    padding: 20px 0 40px;
    .container {
      .img-section-img {
        width: 100%;
        border-radius: 20px;
        overflow: hidden;
        object-fit: cover;
        box-shadow: 2px 4px 8px 8px rgba(0, 0, 0, 0.05);
        &.cursor {
          cursor: pointer;
        }
      }
    }
  }

  .threeD-section {
    padding: 40px 0 60px;
    color: #000;
    text-align: center;
    .container {
      .threeD-title {
        font-size: 48px;
        font-weight: 500;
        letter-spacing: 4px;
      }
      .threeD-tips {
        font-size: 22px;
        margin: 20px auto;
      }
      .threeD-description {
        width: 90%;
        margin: 15px auto;
        font-size: 16px;
        color: #5c5c5c;
      }
      .find-btn-txt {
        color: #703ffa;
        background-color: transparent;
        transition: all 0.2s ease-in-out;
        &:hover {
          background-color: #703ffa;
          color: #fff;
        }
      }

      // 响应式 电脑
      @media (max-width: $breakpoint-desktop) {
        .threeD-title {
          font-size: 36px;
          letter-spacing: 3px;
        }
        .threeD-tips {
          font-size: 18px;
          margin: 20px auto;
        }
        .threeD-description {
          font-size: 16px;
        }
      }
      // 响应式 平板
      @media (max-width: $breakpoint-tablet) {
        .threeD-title {
          font-size: 32px;
          letter-spacing: 2px;
        }
        .threeD-tips {
          font-size: 18px;
          margin: 18px auto;
        }
        .threeD-description {
          width: 100%;
          font-size: 16px;
        }
      }
      // 响应式 手机
      @media (max-width: $breakpoint-mobile) {
        .threeD-title {
          font-size: 28px;
        }
        .threeD-tips {
          font-size: 16px;
          margin: 14px auto;
        }
        .threeD-description {
          font-size: 14px;
        }
      }
    }
  }

  .secure-content {
    padding: 25px 0;
    .container {
      .secure-level {
        display: flex;
        justify-content: space-between;
        .secure-level-content {
          flex: 1;
          width: 50%;
          padding: 0 0 0 20px;
          display: flex;
          flex-direction: column;
          justify-content: center;
          .secure-level-tips {
            font-size: 16px;
            font-weight: 500;
            color: #383838;
            margin-bottom: 20px;
          }
          .secure-level-tips-small {
            font-size: 14px;
            font-weight: 500;
            color: #929292;
          }
          .secure-level-title {
            font-size: 32px;
            font-weight: 500;
            color: #383838;
            margin-bottom: 20px;
          }
          .secure-level-desc {
            margin: 0 0 20px;
            font-size: 16px;
            color: #585858;
            li {
              list-style: none;
              position: relative;
              padding-left: 15px;
              &::before {
                content: "•";
                position: absolute;
                left: 0;
                top: 50%;
                color: #585858;
                font-size: 16px;
                transform: translateY(-50%);
              }
            }
          }
          .secure-level-btn {
            .secure-level-btn-inner {
              display: inline-block;
              font-size: 16px;
              color: #fff;
              border: 1px solid #703ffa;
              background-color: #703ffa;
              border-radius: 10px;
              padding: 6px 20px;
              cursor: pointer;
              transition: all 0.3s ease;
              &:hover {
                background-color: transparent;
                color: #703ffa;
              }

              &.more {
                background-color: transparent;
                color: #703ffa;
                transition: all 0.2s ease-in-out;
                &:hover {
                  background-color: #703ffa;
                  color: #fff;
                }
              }
            }
          }
        }
        .secure-iso {
          flex: 1;
          width: 50%;
          img {
            width: 100%;
            height: 100%;
            object-fit: cover;
          }
        }
      }
      // 响应式 电脑
      @media (max-width: $breakpoint-desktop) {
        .secure-level {
          display: flex;
          justify-content: space-between;
          flex-wrap: wrap;
          .secure-level-content {
            flex: 1 1 100%;
            width: 100%;
            display: flex;
            flex-direction: column;
            justify-content: center;

            .secure-level-title {
              font-size: 28px;
              font-weight: 500;
              text-align: center;
            }
            .secure-level-tips {
              font-size: 14px;
            }

            .secure-level-desc {
              font-size: 16px;
            }
            .secure-level-btn {
              margin: 0 auto;
              .secure-level-btn-inner {
                font-size: 16px;
                padding: 6px 20px;
              }
            }
          }
          .secure-iso {
            flex: 1 1 100%;
            width: 100%;
          }
        }
      }
      // 响应式 平板
      @media (max-width: $breakpoint-tablet) {
        .secure-level {
          .secure-level-content {
            .secure-level-title {
              font-size: 32px;
            }
            .secure-level-desc {
              font-size: 16px;
            }
            .secure-level-btn {
              .secure-level-btn-inner {
                font-size: 16px;
                padding: 6px 20px;
              }
            }
          }
        }
      }
    }
  }

  .threeD-content {
    padding: 25px 0 60px;
    .container {
      .threeD-list {
        display: flex;
        flex-wrap: wrap;
        gap: 30px 24px;
        .threeD-item {
          width: calc(33.33% - 16px);
          border-radius: 14px;

          .threeD-item-inner {
            flex: 1 1 100%;
            width: 100%;
            height: 100%;
            .threeD-item-img {
              width: 100%;
              border-radius: 14px;
              object-fit: cover;
              margin-bottom: 20px;
            }
            .threeD-item-tips {
              font-size: 16px;
              color: #929292;
            }
            .threeD-item-title {
              font-size: 36px;
              font-weight: 500;
              color: #000;
              margin-bottom: 20px;
            }
            .threeD-item-content {
              font-size: 16px;
              color: #585858;
              padding-bottom: 20px;
              ul {
                li {
                  list-style: none;
                  position: relative;
                  padding-left: 15px;
                  font-size: 16px;
                  margin-bottom: 10px;
                  &::before {
                    content: "•";
                    position: absolute;
                    left: 0;
                    top: 50%;
                    color: #585858;
                    font-size: 16px;
                    transform: translateY(-50%);
                  }
                }
              }
            }
            .threeD-item-btn {
              align-content: flex-end;
              display: flex;
              justify-content: center;
              align-items: center;
              padding: 10px 20px;
              font-size: 16px;
              width: fit-content;
              border: 1px solid #703ffa;
              color: #703ffa;
              border-radius: 10px;
              cursor: pointer;
              transition: all 0.2s ease-in-out;
              &:hover {
                background-color: #703ffa;
                color: #fff;
              }
            }
          }
        }
      }

      // 响应式 电脑
      @media (max-width: $breakpoint-desktop) {
        .threeD-list {
          gap: 20px 24px;
          .threeD-item {
            width: calc(50% - 16px);
            .threeD-item-inner {
              .threeD-item-title {
                font-size: 28px;
              }
              .threeD-item-content {
                padding-bottom: 10px;
              }
            }
          }
        }
      }
      // 响应式 平板
      @media (max-width: $breakpoint-tablet) {
        .threeD-list {
          gap: 20px;
          .threeD-item {
            width: 100%;
            padding: 8px;
            .threeD-item-inner {
              .threeD-item-title {
                font-size: 24px;
                margin-bottom: 10px;
              }
              .threeD-item-content {
                font-size: 14px;
                ul {
                  li {
                    font-size: 14px;
                  }
                }
              }
              .threeD-item-btn {
                padding: 6px 20px;
                font-size: 14px;
              }
            }
          }
        }
      }
      // 响应式 手机
      @media (max-width: $breakpoint-mobile) {
        .threeD-list {
          gap: 10px;
          .threeD-item {
            .threeD-item-inner {
              .threeD-item-btn {
                padding: 6px 12px;
                font-size: 14px;
              }
            }
          }
        }
      }
    }
  }
</style>
